﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data;
using Data.Attributes;
using System.Data;

namespace BusinessLayer.Tables
{
    [Tables("TBL_0_POSLAR")]
    public class Db_Poslar : MasterTable
    {
        #region Fields
        int rec_id;
        DateTime create_date;
        int create_user;
        DateTime update_date;
        int update_user;
        bool locked;
        bool hidden;

        int cash_id;
        string cash_adi;
        Int16 cash_depo_id;
        Int16 cash_tip;
        string cash_stock_exp;
        string cash_sale_imp;
        string cash_msg;
        string cash_fatseri;
        string cash_nakitkasa;
        int cash_por_no;
        string cash_yardimci_prg;
        #endregion

        #region Properties
        [Fields("pos_rec_id", false, false, false, false, false, false, false, 4, SqlDbType.Int, true, false, -1, -1, -1, -1, -1)]
        public int Rec_ID
        {
            get { return rec_id; }
            set { rec_id = value; }
        }
        [Fields("pos_create_date", true, true, true, false, false, true, false, 8, SqlDbType.DateTime, false, false, -1, -1, -1, -1, -1)]
        public DateTime Create_Date
        {
            get { return create_date; }
            set { create_date = value; }
        }
        [Fields("pos_create_user", true, true, true, false, true, true, false, 4, SqlDbType.Int, false, false, -1, -1, -1, -1, -1)]
        public int Create_User
        {
            get { return create_user; }
            set { create_user = value; }
        }
        [Fields("pos_update_date", true, true, true, false, true, true, false, 8, SqlDbType.DateTime, false, false, -1, -1, -1, -1, -1)]
        public DateTime Update_Date
        {
            get { return update_date; }
            set { update_date = value; }
        }
        [Fields("pos_update_user", true, true, true, false, true, true, false, 4, SqlDbType.Int, false, false, -1, -1, -1, -1, -1)]
        public int Update_User
        {
            get { return update_user; }
            set { update_user = value; }
        }
        [Fields("pos_locked", true, true, true, false, true, true, false, 2, SqlDbType.Bit, false, false, -1, -1, -1, -1, -1)]
        public bool Locked
        {
            get { return locked; }
            set { locked = value; }
        }
        [Fields("pos_hidden", true, true, true, false, true, true, false, 2, SqlDbType.Bit, false, false, -1, -1, -1, -1, -1)]
        public bool Hidden
        {
            get { return hidden; }
            set { hidden = value; }
        }
        [Fields("cash_id", true, true, true, true, true, false, false, 4, SqlDbType.Int, false, false, -1, -1, -1, -1, -1)]
        public int CashID
        {
            get { return cash_id; }
            set { cash_id = value; }
        }
        [Fields("cash_adi", true, true, true, false, true, false, true, 25, SqlDbType.NVarChar, false, false, -1, -1, -1, -1, -1)]
        public string CashAdi
        {
            get { return cash_adi; }
            set { cash_adi = value; }
        }
        [Fields("cash_depo_id", true, true, true, true, true, false, false, 2, SqlDbType.SmallInt, false, false, -1, -1, -1, -1, -1)]
        public Int16 CashDepoID
        {
            get { return cash_depo_id; }
            set { cash_depo_id = value; }
        }
        [Fields("cash_tip", true, true, true, false, true, false, false, 2, SqlDbType.SmallInt, false, false, -1, -1, -1, -1, -1)]
        public Int16 CashTip
        {
            get { return cash_tip; }
            set { cash_tip = value; }
        }
        [Fields("cash_stok_exp", true, true, true, false, true, false, true, 300, SqlDbType.NVarChar, false, false, -1, -1, -1, -1, -1)]
        public string CashStockExp
        {
            get { return cash_stock_exp; }
            set { cash_stock_exp = value; }
        }
        [Fields("cash_sale_imp", true, true, true, false, true, false, true, 300, SqlDbType.NVarChar, false, false, -1, -1, -1, -1, -1)]
        public string CashSaleImp
        {
            get { return cash_sale_imp; }
            set { cash_sale_imp = value; }
        }
        [Fields("cash_msg", true, true, true, false, true, false, true, 300, SqlDbType.NVarChar, false, false, -1, -1, -1, -1, -1)]
        public string CashMsg
        {
            get { return cash_msg; }
            set { cash_msg = value; }
        }
        [Fields("cash_fatseri", true, true, true, false, true, true, true, 10, SqlDbType.NVarChar, false, false, -1, -1, -1, -1, -1)]
        public string CashFatseri
        {
            get { return cash_fatseri; }
            set { cash_fatseri = value; }
        }
        [Fields("cash_nakitkasa", true, true, true, false, true, true, true, 25, SqlDbType.NVarChar, false, false, -1, -1, -1, -1, -1)]
        public string CashNakitKasa
        {
            get { return cash_nakitkasa; }
            set { cash_nakitkasa = value; }
        }
        [Fields("cash_port_no", true, true, true, false, true, true, false, 4, SqlDbType.Int, false, false, -1, -1, -1, -1, -1)]
        public int CashPorNo
        {
            get { return cash_por_no; }
            set { cash_por_no = value; }
        }
        [Fields("cash_yardimci_prg", true, true, true, false, true, true, true, 300, SqlDbType.NVarChar, false, false, -1, -1, -1, -1, -1)]
        public string CashYardimciPrg
        {
            get { return cash_yardimci_prg; }
            set { cash_yardimci_prg = value; }
        }
        #endregion
    }
}
